# -*- coding: utf-8 -*-
# keys 获取当前字典中所有的键（key）
my_dict = {'name':'dewei','age':33}
print (my_dict.keys())

key_list = list(my_dict.keys())
print(key_list)

project = {'id': 1, 'project_name': 'ipad', 'price': 2200, 'count': 30}

project_title = list(project.keys())
print(project_title) # ['count', 'price', 'project_name', 'id']
print(type(project_title))

print(project_title[0]) # count
print(project_title[3]) #id
print(project_title[2: 6]) # ['project_name', 'id']
project_title.append('user')
print(project_title)